package com.vencent.spring.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Order implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Customer customer;
	
	private List<Hamburger> burgers;
	
	private Payment payment;
	
	public Order(){
		burgers = new ArrayList<Hamburger>();
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public List<Hamburger> getBurgers() {
		return burgers;
	}

	public void setBurgers(List<Hamburger> burgers) {
		this.burgers = burgers;
	}

	public Payment getPayment() {
		return payment;
	}

	public void setPayment(Payment payment) {
		this.payment = payment;
	}
	
	public void addHamburger(Hamburger ham){
		this.burgers.add(ham);
	}
}
